import { App } from 'vue'

import { properties } from '@/utils'

export const addAppProperies = (app: App) => {
  Object.keys(properties).forEach((keys: string) => {
    const $_key = keys.includes('$') && keys[0] === '$'
    if ($_key) {
      app.config.globalProperties[keys] = properties[keys]
    } else {
      app.config.globalProperties['$' + keys] = properties[keys]
    }
  })
}
